<?php 
$user=$this->Session->read('User');

	if(isset($user['User']['id'])){
?>
<?php echo $user['User']['name']?>
<a href="<?echo SITE_URL.'/users/logout'?>">Logout</a>
<a href="<?echo SITE_URL.'/projects'?>">project</a>
<a href="<?echo SITE_URL.'/statuses'?>">status</a>
<a href="<?echo SITE_URL.'/types'?>">type</a>
<a href="<?echo SITE_URL.'/priorities'?>">priority</a>
<a href="<?echo SITE_URL.'/fields'?>">field</a>
<a href="<?echo SITE_URL.'/users/profile'?>">profile</a>
<?php }else{?>
<a href="<?echo SITE_URL.'/users/login'?>">Login</a>
<?php }?>